﻿using System;
using System.Collections.Generic;

namespace Joy.Erp.BasicArchives.Core
{
    public class MultiArchiveAggregateRoot<TChild, TKey> : ArchiveAggregateRoot<TKey>, IMultiArchiveAggregateRoot<TChild, TKey>, IHasChildren<TChild>
        where TChild : IArchiveChildAggregateRoot<TKey>
    {
        /// <summary>
        /// 子项集合
        /// </summary>
        public ICollection<TChild> Children { get; set; } = new List<TChild>();
    }

    public class MultiArchiveAggregateRoot<TChild> : MultiArchiveAggregateRoot<TChild, Guid>, IMultiArchiveAggregateRoot<TChild>, IHasChildren<TChild>
        where TChild : IArchiveChildAggregateRoot
    {

    }
}
